package org.example.ioc02.servlet;

import org.example.ioc02.dao.StudentDao;
import org.example.ioc02.pojo.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class StudentServletImp implements StudentServlet{

    @Autowired
    private StudentDao studentDao;
    @Override
    public List<Student> finAll() {
        return studentDao.findAll();
    }
}
